<?php

add_filter('wpjam_settings', 'wpjam_direct_apis_setting');
function wpjam_direct_apis_setting($wpjam_settings){
	$wpjam_settings['direct-api']	= array(
		'option_type'	=> 'single',
		'sections'		=>array(
			'direct-api'=>array(
				'title'		=> '',
				'summary'	=> '<p>直达API，可以绕过WordPress主循环机制，知道API接口！</p>',
				'fields'	=> array(
					'direct-api'	=> array('title'=>'直达API', 'type'=>'mu-fields', 'fields'=>array(
						'json'		=>	array('title'=>'接口', 'type'=>'type'),
						'template'	=>	array('title'=>'模板', 'type'=>'type',	'placeholder'=>WP_CONTENT_DIR),
					))
				)
			)	
		)
	);
	return $wpjam_settings;
}